﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MyNoteBook
{
    public partial class frmSearch : Form
    {
        private string mstrMyText;
        public string strMyText
        {
            get
            {
                return mstrMyText;
            }
            set
            {
                mstrMyText = value;
                //根据参数的变化，要执行的代码可以写在这里
            }
        }
        public frmSearch()
        {
            InitializeComponent();
        }
        //委托类型声明
        public delegate void searchString(string strSearchText , bool IsUp, bool IsCaseSensitive);
        //事件声明
        public event searchString Search;
        private void btnCancle_Click(object sender, EventArgs e)
        {
            this.Close();
        }
        private void btnSearch_Click(object sender, EventArgs e)
        {
            if (this.txtSearch .Text !="")
            {
                Search(this.txtSearch .Text ,this .rdbUp .Checked ,this.ckbCase .Checked );
            }
        }
    }
}